<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <title>系统信息</title>
        <link href="/static/bootstrap/bootstrap.min.css" rel="stylesheet">
        <link href="/static/font-awesome/css/font-awesome.css" rel="stylesheet">
        <link href="/admin/css/animate.css" rel="stylesheet">
        <link href="/admin/css/style.css" rel="stylesheet">
    </head>
    <style>
        .height{margin-top: 200px;}
        .success,.error {font-size: 18px;min-width: 600px;}
    </style>
    <body class="">
        <div class="height text-center animated fadeInDown">
            <?php switch ($code) {?>
            <?php case 1:?>
            <div class="m-t-xl ">
                <h2>:)</h2>
                <div class="success"><?php echo(strip_tags($msg));?></div>
            </div>
            <?php break;?>
            <?php case 0:?>
            <div class="m-t-xl">
                <h2>:(</h2>
                <div class="error"><?php echo(strip_tags($msg));?></div>
            </div>
            <?php break;?>
            <?php } ?>
            <div class="m-t-sm">
                页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
            </div>
        </div>

        <script src="/static/jquery/jquery-2.1.1.min.js"></script>
        <script src="/static/bootstrap/bootstrap.min.js"></script>
        <script type="text/javascript">
            (function () {
                var wait = document.getElementById('wait'),
                        href = document.getElementById('href').href;
                var interval = setInterval(function () {
                    var time = --wait.innerHTML;
                    if (time <= 0) {
                        location.href = href;
                        clearInterval(interval);
                    }
                    ;
                }, 1000);
            })();
        </script>
    </body>
</html>
